package com.forum.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.forum.annotation.Excel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassNamePgdInformationEntity
 * @Author 张继成
 * @Date 2023/11/29 14:54
 */
@TableName("pgdinformation")
@Api("资料信息表")
@Data
public class PgdInformationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date Addtime;

    /** 资料编号 */
    @Excel(name = "资料编号")
    @ApiModelProperty("资料编号")
    private String informationNo;

    /** 资料名称 */
    @Excel(name = "资料名称")
    @ApiModelProperty("资料名称")
    @TableField("InformationName")
    private String InformationName;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty("图片")
    @TableField("pictrue")
    private String pictrue;

    /** 资料内容 */
    @Excel(name = "资料内容")
    @ApiModelProperty("资料内容")
    @TableField("InfromationContent")
    private String InfromationContent;

    /** 资料文件 */
    @Excel(name = "资料文件")
    @ApiModelProperty("资料文件")
    @TableField("InfromationFile")
    private String InfromationFile;

    /** 资料详情 */
    @Excel(name = "资料详情")
    @ApiModelProperty("资料详情")
    @TableField("InfromationDetails")
    private String InfromationDetails;

    /** 历年真题 */
    @Excel(name = "历年真题")
    @ApiModelProperty("历年真题")
    @TableField("OldyerQuestion")
    private String OldyerQuestion;

    /** 复习笔记 */
    @Excel(name = "复习笔记")
    @ApiModelProperty("复习笔记")
    @TableField("Review")
    private String Review;

    /** 点赞 */
    @Excel(name = "点赞")
    @ApiModelProperty("点赞")
    @TableField("isLike")
    private Long isLike;

    /** 踩 */
    @Excel(name = "踩")
    @ApiModelProperty("踩")
    @TableField("NoLike")
    private Long NoLike;
}
